/*
 *  Ringer.h
 *  MetaThrift
 *
 *  Created by Ian Pye on 3/16/08.
 *  Copyright 2008 TriceratopsPowered. All rights reserved.
 *
 */

#ifndef RINGER_HEADER
#define RINGER_HEADER 1

namespace ringer {

static const std::string RINGER_ROOT = "/";  
static const std::string RINGER_HOST_ROOT_SEP = ":";
static const std::string RINGER_OTHER_HOSTS_DIR = ".hosts";
static const std::string RINGER_DEFUALT_CONFIG_FILE_PATH = "meta_config_file";
static const std::string META_SERVER_VERSION_STRING = "Ringer MetaServer, Version 0.1. \nCreated by Ian Pye -- ipye@cs.ucsc.edu. \nCopyright 2008 TriceratopsPowered. All rights reserved. \nResearch software -- Use at your own risk!";
static const std::string RINGER_DEFUALT_MDS_PARENT_HOST = "NO HOST";
static const int RINGER_DEFUALT_MDS_PARENT_PORT = -1;
static const std::string RINGER_DEFUALT_MDS_HOST = "localhost";
static const int RINGER_DEFUALT_MDS_PORT = 9090;
static const int RINGER_DEFUALT_SELF_PORT = 10100;
static const int32_t NO_USER = -1;
static const int32_t RINGER_PING_RESULT = 1;
static const int RINGER_SIMHASH_SEARCH_THRESHOLD = 1;

// SERVER ERROR CODES
static const int RNOODE_NOT_FOUND = -4000;
static const int RNOODE_NOT_ALLOWED = -4010;

} // end ringer namespace
#endif //RINGER_HEADER
